package com.xiaobai.mybatis_plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaobaibai
 * @since 2022-01-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("achievement")
@NoArgsConstructor
public class Achievement implements Serializable {

    private static final long serialVersionUID = 1L;

    public Achievement(String studentId, String term, String content) {
        this.studentId = studentId;
        this.term = term;
        this.content = content;
    }

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("student_id")
    private String studentId;

    @TableField("term")
    private String term;

    @TableField("content")
    private String content;


}
